// 通过 require 导入自定义模块
const math = require( './math.js' );

console.log( math.parse( 'XYZ' , 36 ) );
console.log( Number.parseInt( 'XYZ' , 36 ) );

console.log( math.parse( '1000010001' , 2 ) );
console.log( Number.parseInt( '1000010001' , 2 ) );

let x = 9527 ;
console.log( math.toString( x , 2 ) );
console.log( math.toString( x , 8 ) );
console.log( math.toString( x , 16 ) );
console.log( math.toString( x , 36 ) );